﻿@model Seven.DataModel.ViewModels.DeskModuleAbout.DeskModuleModel
<script src="~/Scripts/views/DeskModule/DeskModuleForm.js"></script>
<form id="DeskModule-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">桌面模块信息</legend>
            @Html.HiddenFor(m => m.ID)
            @Html.Hidden("OriginalLocation", Model.Location)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        名称：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Name)
                    </td>
                    <td class="TableLabel">
                        排序号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.SortNumber)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        控制类型：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.ControlType)
                    </td>
                    <td class="TableLabel">
                        默认位置：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Location)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        默认高度：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Height)
                    </td>
                    <td class="TableLabel">
                        默认条数：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Size)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        关联菜单：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.MenuID)
                        <label style="vertical-align:middle;">@Model.MenuName</label>&nbsp;<a id="select_menu" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-edit',plain:true,content:'修改关联菜单'"></a>
                    </td>
                    <td class="TableLabel">
                        动作：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.ActionName)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        禁用：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.IsDisabled, true) 是
                        @Html.RadioButtonFor(model => model.IsDisabled, false) 否
                    </td>
                    <td class="TableLabel">
                        消息：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.ReceiveMessage, true) 接收
                        @Html.RadioButtonFor(model => model.ReceiveMessage, false) 不接收
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        权限限制：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.IsLimited, true) 是
                        @Html.RadioButtonFor(model => model.IsLimited, false) 否
                    </td>
                    <td class="TableLabel">
                        <span class="required">立即生效</span>：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.EffectUser, true) 是
                        @Html.RadioButtonFor(model => model.EffectUser, false) 否
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(model => model.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {

        window.views.DeskModule.DeskModuleForm.initPage("DeskModule-Form");
    });
</script>


